#!/bin/sh

ver_old=$2

if [ "$(apk version -t "$ver_old" '0.1.0-r0')" = '<' ]; then
	cat >&2 <<-EOF
	*
	* mautrix-slack was ported over to the new Megabridge framework,
	* which requires a new config format.
	*
	* Migration of the old format is not possible. A example config has
	* been added to /etc/mautrix-slack/config.yaml
	*
	EOF
fi

exit 0
